<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
//response.sendRedirect("common/login");
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>日志管理</title>
		<script type="text/javascript" src="${path }/resource/js/jquery-1.8.3.min.js"></script>
			<script type="text/javascript" src="${path }/resource/js/mytools.js"></script>
			<script type="text/javascript" src="${path }/resource/layer/layer.js"></script>
			<script type="text/javascript" src="${path }/resource/layui/layui.js" ></script>
			<link rel="stylesheet" href="${path }/resource/layui/css/layui.css" />
	</head>
	<body>
<!-- 	<form id="searchFrom" class="form-inline">
	<div class="input-group">
	 	<div class="input-group-addon">创建时间:</div>
		<input type="text"  class="form-control" name="createTime" />
		</div>
	<div class="input-group">
	 	<div class="input-group-addon">日志:</div>
		<input type="text"  class="form-control" name="logContent"  />
		</div>
	<div class="input-group">
	 	<div class="input-group-addon">ip:</div>
		<input type="text"  class="form-control" name="ip" />
		</div>
	<div class="input-group">
	 	<div class="input-group-addon">用户名:</div>
		<input type="text"  class="form-control" name="userName"  />
		</div>
		<br>
	<input type="button" class="btn btn-primary btn-sm" value="查询" onclick="mjs.search()"/>
	</form> -->
	<div id="tablediv" >
		<table id="table1"  class="layui-table">
		<thead id="thead">
		<th data-name = "userId">用户id</th>  
		<th data-name = "createTime" data-format="mytooljs.getTime">创建时间</th>
		<th data-name = "logContent" >日志内容</th>
		<th data-name = "ip">ip</th>
		<th data-name = "userName">用户名</th>
		</thead>
	</table>
	</div>
	<a href="${path}/developer/log/importExcel">导出excle</a>
	<br>
	<script>
	var mjs  = mytooljs.initTable({  
		idSelecter:"#table1",
		pagesize:5,//分页大小
		sendurl:"${path}/developer/log/showList" , //求数据的地址
		pagesize:10
		});
	</script>
	</body>
</html>
